const child_process = require("child_process");

setTimeout(() => {
  var workerProcess = child_process.spawn("node", ["./scripts/FileRouting.js"]);

  workerProcess.stdout.on("data", function (data) {
    console.log("stdout: " + data);
  });

  workerProcess.stderr.on("data", function (data) {
    console.log("stderr: " + data);
  });

  workerProcess.on("close", function (code) {
    console.log("子进程已退出，退出码 " + code);
  });
}, 3000);
